#!/usr/bin/bash
arg_pid=`pgrep $1`
echo $arg_pid

function kill_process()
{
for i in $arg_pid;
do
kill -9 $i
done
}

if [ -z ${arg_pid} ];
then
  echo  "$1 not started!"
else
  kill_process;
fi
